<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>百度贴吧云签到</title>
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../plugins/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/AdminLTE.css">
    <link rel="stylesheet" href="../plugins/adminLTE/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="../plugins/bootstrap/js/bootstrap.min.js"></script>

    <script type="text/javascript" src="../plugins/angularjs/angular.min.js"></script>
    <!-- 分页组件开始 -->
    <script src="../plugins/angularjs/pagination.js"></script>
    <link rel="stylesheet" href="../plugins/angularjs/pagination.css">
    <!-- 分页组件结束 -->


    <script type="text/javascript" src="../js/base_pagination.js"></script>
    <script type="text/javascript" src="../js/service/tiebaService.js"></script>
    <script type="text/javascript" src="../js/controller/baseController.js"></script>
    <script type="text/javascript" src="../js/controller/tiebaController.js"></script>

</head>
<body class="hold-transition skin-red sidebar-mini" ng-app="tieba" ng-controller="tiebaController">
<!-- .box-body -->
<div class="box-header with-border">
    <h2 class="box-title"><a href="tieba.html">贴吧云签到</a></h2>
</div>

<div class="box-body">

    <!-- 数据表格 -->
    <div class="table-box">

        <!--工具栏-->
        <div class="pull-left">
            <div class="form-group form-inline">
                <div class="btn-group">
                    <button type="button" class="btn btn-default" title="添加任务" data-toggle="modal"
                            data-target="#editModal"><i
                            class="fa fa-file-o"></i> 添加任务
                    </button>
                    <a href="https://cway.top">
                        <button type="button" class="btn btn-default" title="博客"><i
                                class="fa fa-file-o"></i> 博客
                        </button>
                    </a>
                    <a href="https://cway.top/post/545.html">
                        <button type="button" class="btn btn-default" title="帮助"><i
                                class="fa fa-file-o"></i> 帮助
                        </button>
                    </a>
                    <a href="email.html">
                        <button type="button" class="btn btn-default" title="绑定邮箱"><i
                                class="fa fa-file-o"></i> 绑定邮箱
                        </button>
                    </a>
                    <button type="button" class="btn btn-default" title="书签" ng-click="addfavorite()"><i
                            class="fa fa-file-o"></i> 书签
                    </button>
                </div>
                <div class="input-group input-group-sm">
                    <input type="text" class="form-control" placeholder="请输入QQ搜索" ng-model="searchEntity.qq">
                    <span class="input-group-btn">
								<button type="button" class="btn btn-info btn-flat" ng-click="searchKeyword(1,22)">搜索</button>
							</span>
                </div>
            </div>
        </div>
        <div class="box-tools pull-right">
            <div class="has-feedback">
            </div>
        </div>
        <!--工具栏/-->

        <!--数据列表-->
        <table id="dataList" class="table table-bordered table-striped table-hover dataTable">
            <thead>
            <tr>
                <th class="sorting">QQ</th>
                <th class="sorting">任务名</th>
                <th class="sorting">创建时间</th>
                <th class="sorting">上次执行</th>
                <th class="sorting">上次完成</th>
                <th class="sorting">执行次数</th>
                <th class="sorting">是否有效</th>
                <th class="sorting">今签吧数</th>
                <th class="sorting">今签积分</th>

                <th class="text-center">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="entity in list">
                <td>{{entity.qq}}</td>
                <td>{{entity.taskname}}</td>
                <td>{{entity.creatTime}}</td>
                <td>{{entity.visitTime}}</td>
                <td>{{entity.finishTime}}</td>
                <td>{{entity.visitCount}}</td>
                <td>{{covert(entity.validity)}}</td>
                <td><a href="error.html?id={{entity.id}}">{{entity.amount}}</a></td>
                <td>{{entity.points}}</td>


                <td class="text-center">
                    <button type="button" class="btn bg-olive btn-xs" data-toggle="modal" data-target="#editModal"
                            ng-click="updateOne(entity.id)">修改
                    </button>
                </td>
            </tr>
            </tbody>
        </table>
        <!--数据列表/-->
    </div>
    <!-- 数据表格 /-->
    <!-- 分页 -->
    <tm-pagination conf="paginationConf"></tm-pagination>
</div>
<!-- /.box-body -->

<!-- 编辑窗口 -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel">添加/修改云任务</h3>
            </div>
            <div class="modal-body">
                <table class="table table-bordered table-striped" width="800px">
                    请牢记所填QQ值，这是您查询修改的依据，添加多个任务可用同一个值<br/>
                    若更改请联系<a href="https://cway.top/2.html">管理员</a>，建议用自己QQ，方便查询使用<br/>
                    BDUSS获取方式请点"<a href="https://cway.top/post/545.html">帮助</a>"
                    <tr>

                        <td>QQ:</td>

                        <td><input class="form-control" ng-model="entity.qq" placeholder="{{entity.qq}}">
                        </td>

                    </tr>
                    <tr>

                        <td>任务名:</td>

                        <td><input class="form-control" ng-model="entity.taskname" placeholder=""></td>

                    </tr>
                    <tr>

                        <td>bduss:</td>

                        <td><input class="form-control" ng-model="entity.bduss" placeholder=""></td>

                    </tr>

                </table>
            </div>
            <div class="modal-footer">
                <button class="btn btn-success" data-dismiss="modal" aria-hidden="true" ng-click="save()">保存</button>
                <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
            </div>
        </div>
    </div>
</div>

</body>
</html>
